import datetime
import wsgiref.handlers

from google.appengine.ext import webapp


class MainPage(webapp.RequestHandler):
    def get(self):
        
        self.response.out.write(datetime.datetime.now())
        
        
        
    def post(self):        
        pass
        

def main():
  application = webapp.WSGIApplication(
                                       [('/time', MainPage)],
                                       debug=True)
  wsgiref.handlers.CGIHandler().run(application)

if __name__ == "__main__":
  main()